HTMLElement.prototype.css = function (style) {
    // console.log(style);
    for (var key in style) {
        if (style.hasOwnProperty(key)) {
            var value = style[key];
            this.style[key] = value;
        }
    }
    return this;
};

(function () {
    var Notify = {
        show: show,
        close: close
    };
    function show(title, msg) {
        var div = document.createElement('div');

        div
            .css({
                position: 'absolute',
                width: '100px',
                height: '100px',
                bottom: 0,
                right: 0,
                background: '#ccc'
            })
            .addEventListener('click', function (e) {
                div.remove();
            });


        document.body.appendChild(div);
    }
    function close() {

    }




    window.Notify = Notify;
})();